package ex.com.jm.food.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import javax.persistence.Table;
/**
 * 街道实体层
 * @author zhaojw
 *
 */
@Entity
@Table(name="jm_streets")
public class Streets implements Serializable {


	private static final long serialVersionUID = 1L;
	@Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name="street_id",nullable=false,unique=true,length=11)
	private int streetId;
	@Column(name="street_name",nullable=false,unique=true,length=11)
	private String streetName;
	@ManyToOne
	@JoinColumn(name="county_id")
	private Countys countyId;
	public int getStreetId() {
		return streetId;
	}
	public void setStreetId(int streetId) {
		this.streetId = streetId;
	}
	public String getStreetName() {
		return streetName;
	}
	public void setStreetName(String streetName) {
		this.streetName = streetName;
	}
	public Countys getCountyId() {
		return countyId;
	}
	public void setCountyId(Countys countyId) {
		this.countyId = countyId;
	}

}
